%%% SETUPS %%%
\setupoutput
  [pdftex]

\enableregime
   [utf]
%\usetypescript
%  [modern][ec]

\mainlanguage
   [cz]

\setuppagenumber
   [state=start]
\setuppapersize[A4][A4] % this is default and may be omitted
	\setuplayout[backspace=30mm]%,
%	width=160mm,
%	topspace=20mm, top=0mm,
%	header=0mm, footer=0mm,
%	height=250mm]
%{\setuplayout[backspace=20mm,
%	width=160mm,
%	rightmargin=2cm,
%	rightedge=2cm,
%	rightmargindistance=2cm,
%	rightedgedistance=2cm,
%	leftedge=3cm,
%	leftmargin=3cm,
%	leftmargindistance=3cm,
%	leftedgedistance=3cm,
%	top=0mm,
%	height=250mm]
%}
\setuppagenumbering
   [%style=bold,
   location={footer,right}]%pozice citace stranek
   %\setuphead
%   [chapter]
%   [header=chapter,page=yes,number=yes]

\setupinteraction
  [state=start]
  % style=bold]

\usemodule[chart]

%\setupheads
%  [alternative=inmargin,  separator=--]

\defineframedtext
  [framedcode]
  [%strut=yes,
%   offset=0mm,
   width=\textwidth,
   align=right]
\definetyping[code][%numbering=line,
                    bodyfont=small,
                    before={\starttextrule{Zdrojový kód}},
                    after={\stoptextrule}]



%%% PDFINFO %%%
\pdfinfo{
   /Title (Programovani s omezujicimi podminkami v TORSCHE Toolboxu)
   /Author (Jiri Cigler)
   /Subject (Bakalarska prace)
   /CreationDate (\currentdate) 
   /ModDate (\currentdate)
   /Producer (DCE FEL CVUT)
   /Keywords (Bakalarska prace JOB-SHOP JOBSHOP Scheduling Matlab
		   TORSCHE)
}
%Content
\setupcombinedlist[content][level=4,alternative=c,interaction=all]
\setuplist[chapter][width=5mm,style=bold]
\setuplist[section][width=10mm]
\setuplist[subsection][width=20mm]
% pagestyle=normal for changing the appearance of pagenumber
\setuplist[subsubsection][width=20mm,style=slanted,pagestyle=normal]

%%% BiBTeX
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=literature]
\setuppublications
[alternative=ams,
numbering=bib,
 autohang=yes,
 criterium=all,
 sorttype=bbl]

\setupheadtext[en][pubs=Literatura]

\starttext

\input links.tex

\input title.tex

\externalfigure[images/zadaniBP.png][width=1.0\makeupwidth]

\setuppagenumbering[conversion=Romannumerals]

\resetnumber[page]

\startbodymatter
\setupindenting[medium,yes]

\input acknow.tex

\input abstract.tex
  
  
\completecontent  
\page
\resetnumber[page]

\setuppagenumbering[conversion=numbers]


%\input problemDef.tex

\input introduction.tex

\input scheduling.tex

\input cp.tex

\input jobshop_solution.tex

\input results.tex

\input ooa.tex

\input conclusion.tex



%\setupindenting[none]

\completepublications

\stopbodymatter

\startappendices
%\resetnumber[page]
\setuppagenumbering[conversion=numbers]
\input appendix.tex
\stopappendices

\noheaderandfooterlines
\stoptext
